package com.hfkh.keyun.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
@Getter
@Setter
@NoArgsConstructor
@TableName("tb_unit")
public class Unit implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO) //自增
    private Integer id; //id
    @TableField("unit_name")
    private String unitName; //单位名称
    @TableField("unit_level")
    private Integer unitLevel; //难度等级
    @TableField("major_id")
    private Integer majorId; //专业名称id
    @TableField(exist = false)
    private Major major;// 专业对象
    @TableField("create_date")
    private LocalDateTime createDate;//创建时间
    @TableLogic
    private Integer deleteFlags;
}
